import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { UserComponent } from './ui/user/user.component';
import { SidebarModule } from "app/ui/sidebar/sidebar.module";
import { LoginComponent } from './ui/login/login.component';
import { FeathersService } from './api/feathers.service';
import { NedbService } from "app/service/nedb.service";
import { AccountService } from "app/api/dao/account.service";

@NgModule({
  declarations: [
    AppComponent,
    UserComponent,
    LoginComponent,
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    AppRoutingModule,
    SidebarModule,
  ],
  providers: [FeathersService, AccountService, NedbService],
  bootstrap: [AppComponent]
})
export class AppModule { }
